<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>表单练习</h1>
    <form action="http://www.tmooc.cn">
        用户名：<input type="text" name="username" readonly value="xyz" maxlength="5"><br>
        密码：<input type="password" name="password"><br>
        性别：<input type="radio" name="gender" value="m" id="r1">
        <label for="r1">男</label>
        <input type="radio" name="gender" checked value="w" id="r2">
        <label for="r2">女</label> <br>
        兴趣爱好：<input type="checkbox" name="hobby" value="cy">抽烟
        <input type="checkbox" name="hobby" value="hj" checked>喝酒
        <input type="checkbox" name="hobby" value="tt">烫头 <br>
        生日:<input type="date" name="birthday"> <br>
        靓照：<input type="file" name="pic"> <br>
        所在地：
        <select name="city" >
            <option>北京</option>
            <option selected>上海</option>
            <option value="gz">广州</option>
        </select> <br>

        <input type="submit" value="注册">
        <input type="reset" value="重置">
        <input type="button" value="自定义按钮">


    </form>
</body>
</html>
